package com.thomasmoerman.dci.tmc

trait UpdatableAccountAspect {
  this: MoneyTransferQueries =>
  
  trait UpdatableAccount {
    this: Account =>
    
    def deposit(amount: Double) = persist(Deposit(id, amount))
    
    def withdraw(amount: Double) = persist(Withdrawal(id, amount))
    
  }
  
}